﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;


public partial class Xwxx : System.Web.UI.Page
{
    protected List<Model.NewsSite> alllists = null;
    protected DataTable xinwensj = null;
    public int ID = ReadRequest.RequestInt("id");
    protected Model.NewsSite model = null;
    protected Model.NewsSite modelPrv = null;
    protected Model.NewsSite modelNext = null;
   

    protected void Page_Load(object sender, EventArgs e)
    {

        model = BLL.NewsSite.GetModel(ID);
        modelPrv = BLL.NewsSite.Prv(ID,"");
        modelNext = BLL.NewsSite.Next(ID, "");
        xinwen();
    }
    private void xinwen()
    {
        string sql = "select  Title ,Contents,AddTime from  NewsSite where id="+ID;
        xinwensj = BLL.NewsSite.GetPageListBysql(sql);

    }
    
}